import request from './../utils/request.js'

export function getUserInfoByUnionId(union_id) {
  return request({
    url: '/api/cm/getUserInfoByUnionId',
    method: 'get',
    params: {
      union_id: union_id
    }
  })
}

export function getUserInfoByCode(code) {
  return request({
    url: '/api/cm/getUserInfoByCode',
    method: 'get',
    params: {
      code: code,
      scope: 'snsapi_userinfo'
    }
  })
}